package com.markbuikema.da.opdr1;

public class AlgorithmOutput {
	private long duration;
	private int[] output;
	private int algorithm;
	private int count;

	public AlgorithmOutput(long duration, int[] output, int algorithm, int count) {
		super();
		this.duration = duration;
		this.output = output;
		this.algorithm = algorithm;
		this.count = count;
	}

	public long getDuration() {
		return duration;
	}

	public int[] getOutput() {
		return output;
	}

	public int getAlgorithm() {
		return algorithm;
	}

	public int getCount() {
		return count;
	}

	@Override
	public String toString() {
		return "executed algorithm " + algorithm + " with input " + count + ", duration " + (output == null ? "more than 60000" : duration)
				+ "ms";
	}
}
